﻿using System;

namespace ProjectorMapApp
{
    /// <summary>
    /// this class is adapted from an online source where there is no license for use of code.
    /// This class defines the content that a 'message' should have
    /// </summary>
    [Serializable()]
    public class MessageContent
    {
        private DateTime _creationDate = DateTime.Now;
        private string _messageText;
        private Story _story;

        public MessageContent()
        {
        }

        public MessageContent(string messageText)
        {
            _messageText = messageText;
        }

        public MessageContent(Story story)
        {
            _story = story;
        }

        public string MessageText
        {
            get { return _messageText; }
            set { _messageText = value; }
        }

        public Story Story
        {
            get { return _story; }
            set { _story = value; }
        }

        public DateTime CreationDate
        {
            get { return _creationDate; }
            set { _creationDate = value; }
        }
    }
}
